package com.letoken.platform.admin.async;


import com.letoken.platform.repo.admin.dao.AdminOperationLogMapper;
import com.letoken.platform.repo.admin.po.AdminOperationLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * 异步处理用户登录日志
 *
 * @version 1.0
 * @author： txx
 * @date： 2021-04-14 15:06
 */
@Component
public class AdminOperationLogAsync {

    @Autowired
    private AdminOperationLogMapper adminOperationLogMapper;

    @Async
    public void insertAdminOperationLog(AdminOperationLog adminOperationLog) {
        adminOperationLogMapper.insert(adminOperationLog);
    }
}
